package com.md.infrastructure.config;

import feign.Contract;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 刘骄阳
 * 2022-04-22 15:22
 */
@Configuration
@ConditionalOnProperty(name = "com.test.feign.multipleInheritance.enable")
public class FeignConfig {
  @Bean
  public Contract feignContract() {
    return new CustomContract();
  }

}
